
import '../src/style/input-img-prev.css'
import '../src/style/reset.css'
import '../src/style/swiper.min.css'
import '../src/style/head.css'
import '../src/style/footer.css'
import '../src/style/searchInput.css'
import '../src/style/right-fixed.css'
import '../src/style/new-index.css'
import '../src/style/new-footer.css'
import { createApp } from 'vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from '../src/stores'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import App from './App.vue'
import { setupApp } from './utils/usereventBus';  

import SvgIcon from './components/SvgIcon.vue'


async function start() {
    const app = createApp(App)
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }
    setupApp(app);  
    app.use(pinia)
    app.use(router)
    app.use(ElementPlus, { locale: zhCn })
    app.component('SvgIcon', SvgIcon)
    app.mount('#app')
}
start()


